import { $ } from './library/jquery-module.js';

$('#toIndex').on('click', function() {
    location.href = "./login.html";
});
$('.note').on('click', function() {
    let at = 60;
    $('.note').text(at + '秒后重新获取');
    let timer = setInterval(function() {
        if (at > 1) {
            at--;
            $('.note').text(at + '秒后重新获取').prop("disabled", true);
        } else if (at == 1) {
            $('.note').text('免费获取短信动态码').prop("disabled", false);
            clearInterval(timer);
        }
    }, 1000);
})